package com.yancy.entity;

import java.util.Date;

public class User {
    private String id;
    private String userName;
    private String passWord;
    private Date time;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    //    构造函数
    public User(String userName, String passWord) {
        this.userName = userName;
        this.passWord = passWord;
    }

    public User(String id,String userName,String passWord,Date time){
        this.userName = userName;
        this.id = id;
        this.passWord =passWord;
        this.time = time;
    }

    public User(String id,String userName,String passWord){
        this.userName = userName;
        this.id = id;
        this.passWord =passWord;
    }
}
